
import { SamplingPointDto , SamplingDto } from '@shared/service-proxies/service-proxies';


export class SamplingInfo {

    // 风向
    windDirection = '';
    // 风速
    windSpeed = '';
    windSpeedUnit = 'm/s';

    envTemperature = '';
    envTemperatureUnit = '°C';

    envHumidity = '';
    envHumidityUnit = '%';

    atmosphericPressure = '';
    atmosphericPressureUnit = 'kPa';

    desc = '';

    currentSpeed = '';
    currentSpeedUnit = 'm/s';

    flow = '';
    flowUnit = 'm³/3';

    /*
    disEnvTemperature (){
        return this.envTemperature + '(' + this.envTemperatureUnit + ')';
    }


    disWindSpeed (){
        return this.windSpeed + '(' + this.windSpeedUnit + ')';
    }


    disEnvHumidity (){
        return this.disEnvHumidity + '(' + this.disEnvHumidity + ')';
    }


    disPressure (){
        return this.atmosphericPressure + '(' + this.atmosphericPressureUnit + ')';
    }


    disCurrentSpeed (){
        return this.currentSpeed + '(' + this.currentSpeedUnit + ')';
    }

    disFlow (){
        return this.flow + '(' + this.flowUnit + ')';
    }
    */

}

export class Sampling {

    date : '';
    time : '';
    samplingInfo : SamplingInfo;
    values : Array < DetectionValue > = [];

    constructor() {
        this.samplingInfo = new SamplingInfo();
        this.values = [];
    }

}

export class MarkData {

    id = '';
    piversName = '';
    lng = 0;
    lat = 0;
    pointName = '';

    samplings : Array < Sampling >;

    constructor() {
        this.samplings = [];
    }

}

export class DetectionValue {
    norm : '';
    unit : '';
    value : ''
}

export class WaterWindowVm{
    data = new SamplingPointDto();
    selected = new SamplingDto();
}
